Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix indexin for new Dict syntax #8622

Merged
merged 2 commits into from
Oct 8, 2014
Merged

fix indexin for new Dict syntax #8622

merged 2 commits into from
Oct 8, 2014

Conversation

Jutho
Copy link
Contributor

@Jutho Jutho commented Oct 8, 2014

The new Dict syntax broke indexin. I think this fix is ok? Should there be a test for this?

@jakebolewski
Copy link
Member

If it broke and no one noticed I feel a test should be added.

@timholy
Copy link
Member

timholy commented Oct 8, 2014

I just did that for the profiler in fbd4463.

@Jutho
Copy link
Contributor Author

Jutho commented Oct 8, 2014

Ok I'll add some basic test tonight after work, I just wanted to fix this quickly as my work depends on this. Is "test/arrayops.jl" the right destination for such a test?

JeffBezanson added a commit that referenced this pull request Oct 8, 2014
fix indexin for new Dict syntax
@JeffBezanson JeffBezanson merged commit f1b00f8 into master Oct 8, 2014
function pr8622()
x=[1,3,5,7]
y=[5,4,3]
return indexin(x,y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter, but this could easily be a one-liner.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed. I wanted to make it look more fancy then it is :D. Thanks for merging.

On 08 Oct 2014, at 23:56, Jeff Bezanson notifications@github.com wrote:

In test/arrayops.jl:

@@ -902,3 +902,11 @@ function i7197()
ind2sub(size(S), 5)
end
@test i7197() == (2,2)
+
+# PR #8622 and general indexin test
+function pr8622()

  • x=[1,3,5,7]
  • y=[5,4,3]
  • return indexin(x,y)
    Doesn't matter, but this could easily be a one-liner.


Reply to this email directly or view it on GitHub.

@Jutho Jutho deleted the jh/fix_indexin branch October 8, 2014 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants